<?php

/**
 * @package JFusion_Elgg
 * @author Arunoda Susiripala
 * @copyright Copyright (C) 2008 JFusion. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */

// no direct access
defined('_JEXEC' ) or die('Restricted access' );

/**
 * load the Abstract Auth Class
 */
require_once(JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.abstractauth.php');

/**
 * @package JFusion_Elgg
 */
class JFusionAuth_elgg extends JFusionAuth{

	function generateEncryptedPassword($userinfo)
	{
		require_once(JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'plugins'.
		DS.'elgg'.DS.'encrypt.php');
		return generatePassword($userinfo->password_clear,$userinfo->password_salt);
	}

}